﻿using DataModels.Enums.Community;
using SqlSugar;

namespace DataModels.Entities.Community
{
    [SugarTable]
    public class ButlerEvaluation
    {
        [SugarColumn(IsPrimaryKey = true)]
        public Guid UUID { get; set; } = Guid.NewGuid();

        /// <summary>
        /// 项目UUID
        /// </summary>
        public Guid ProjectUUID { get; set; }

        /// <summary>
        /// 评价级别
        /// </summary>
        public ButlerEvaluationPerformance Performance { get; set; } = ButlerEvaluationPerformance.Satisfied;

        /// <summary>
        /// 评价内容
        /// </summary>
        public string? Comment { get; set; }

        public Guid CreateUser { get; set; }    

        public DateTime CreateTime { get; set; } = DateTime.Now;

        public string YearMonth { get; set; } = DateTime.Now.ToString("yyyy-MM");
        public string StewardUUID { get; set; }
        public string HousingBasicUUID { get; set; }
    }
}
